<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景操作</title>
  <style>
    .box {
      height: 600px;
      background-color: lightcyan;
      background-image: url("./img1.jpg");
      background-repeat: no-repeat;
      /*背景图尺寸*/
      /*cover属性代表会覆盖整个背景*/
      background-size: cover;
      /*contain会把图片完整的展示出来*/
      /*background-size: contain;*/
      background-position: center;
    }
  </style>
</head>
<body>
  <div class="box">
    家就打发你大姐发你的就好了
  </div>
</body>
</html>